package com.thinvent.nj.ais.entity;


import com.thinvent.nj.mybatis.entity.BaseOracleEntity;

import java.util.List;

/**
 * 角色实体
 * @author liupeijun
 */
public class Role extends BaseOracleEntity {

    public Role() {}

    public Role(String id) {
        setId(id);
    }

    // 角色名称
    private String name;

    // 角色编码
    private String code;

    // 是否启用 (0: 否；1：是)
    private Integer enabled;

    // 角色所属组织
    private String orgId;

    private Integer sort;

    private String remarks;

    // 角色对应用户集合
    private List<User> userList;

    // 角色对应资源集合
    private List<Resource> resourceList;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getEnabled() {
        return enabled;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public List<Resource> getResourceList() {
        return resourceList;
    }

    public void setResourceList(List<Resource> resourceList) {
        this.resourceList = resourceList;
    }

    public List<User> getUserList() {
        return userList;
    }

    public void setUserList(List<User> userList) {
        this.userList = userList;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
}
